import request from '@/utils/request'

// 查询驻场片区3代码列表
export function listGeneration3(query) {
  return request({
    url: '/generation3/generation3/list',
    method: 'get',
    params: query
  })
}

// 查询驻场片区3代码详细
export function getGeneration3(id) {
  return request({
    url: '/generation3/generation3/' + id,
    method: 'get'
  })
}

// 新增驻场片区3代码
export function addGeneration3(data) {
  return request({
    url: '/generation3/generation3',
    method: 'post',
    data: data
  })
}

// 修改驻场片区3代码
export function updateGeneration3(data) {
  return request({
    url: '/generation3/generation3',
    method: 'put',
    data: data
  })
}

// 删除驻场片区3代码
export function delGeneration3(id) {
  return request({
    url: '/generation3/generation3/' + id,
    method: 'delete'
  })
}

// 获取片区

export function GetAreaName(){
  return request({
    url: '/generation3/generation3/GetAreaName',
    method: 'get'
  })
}

// 获取地区
export function GetLocation(){
  console.log("获取地区GetLocation");
  
  return request({
    url: '/generation3/generation3/GetLocation',
    method: 'get'
  })
}
